package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

public interface RoleService {

 List<Role> findAll();

 PageResult findPage(QueryPageBean pageBean);

 void add(Role role, Integer[] permissionIds, Integer[] menuIds);

 Role findById(Integer id);

 List<Integer> findPermissionIdsByRoleId(Integer roleId);

 List<Integer> findMenuIdsByRoleId(Integer roleId);

 void edit(Role role, Integer[] permissionIds, Integer[] menuIds);

 void delById(Integer id);

}
